<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>{:input('ks')} - {:fun_sc_p('model', array('name'=>input('m')), 'title')} - {:set('title')}</title>
    <meta name="keywords" content="{:fun_sc_p('model', array('name'=>input('m')), 'keywords')}">
    <meta name="description" content="{:fun_sc_p('model', array('name'=>input('m')), 'description')}">
    {include file="header"}
    <div class="content-box">
        <div class="content">
            <div class="left-content">
                <!--搜索-->
                <div class="title">
                    <div class="top-title contact-us-title">搜索 "{:input('ks')}" 相关的帖子</div>
                </div>
                <!--社区论坛-->
                <div class="news-box">
                    <div class="news-content-box">
                        {volist name=":fun_so(input('m'),array('open'=>1),input('ks'),15)" id="vo" empty="
                        <div class='empty' align='center'>
                            <img src='/public/img/empty.png'/>
                            <p>没有更多的记录</p><br>
                        </div>"}
                        {if getImgList($vo.content,0)}
                        <!-- 有图 -->
                        {if getImgList($vo.content,1)}
                        <!-- 多图 -->
                        <div class="pics-news-box news-content">
                            <div class="pics-news">
                                <h3>
                                    <a target="_blank" href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}">
                                        <span>{$vo.title}</span>
                                        {if $vo.settop==1}
                                        <div class="to-top">
                                            <i>置顶</i>
                                            <s class="bg1"></s>
                                            <s class="bg2"></s>
                                        </div>
                                        {/if}
                                    </a>
                				</h3>
                                <ul class="pics-box">
                                    {volist name=":getImgList($vo.content)" id="v" length='4'}
                                    <li>
                                        <a href="javascript:;">
                                            <img src="{$v}" alt="{$vo.title}" />
                                        </a>
                                    </li>
                                    {/volist}
                                </ul>
                                <div class="news-info">
                                    <div class="left-info">	
                                        <i class="user-headicon">
                                            <i class="user-headicon">
                                                <img src="{:fun_u($vo.uid, 'userhead')}">
                                            </i>
                                        </i>
                                        <span class="user-name"><a target="_blank" href="{:url('index/user/uid',array('id'=>$vo.uid))}">{:fun_u($vo.uid, 'username')}</a></span>
                                        <span class="tieba-channel">[{:fun_cate_m($vo.tid, 'name')}]</span>
                                        <span class="tiezi-time">{$vo.time|times}</span>
                                    </div>
                                    <ul class="right-info">
                                        <li><i></i><span>{$vo.view}</span></li>
                                        <li><i></i><span>{:fun_st('comment', array('fid'=>$vo.id,'m'=>$vo.m))}</span></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        {else/}
                        <!-- 一张图 -->
                        <div class="pic-news-box news-content">
                            <div class="pic-box">
                                <img src="{$vo.content|pic}" />
                            </div>
                            <div class="newscontent-box">
                                <h3>
                                    <a target="_blank" href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}" target="_blank">
                                        <span>{$vo.title}</span>

                                    </a>
                                </h3>
                                <div class="news-info">
                                    <div class="left-info">
                                        <i class="user-headicon">
                                            <i class="user-headicon">
                                                <img src="{:fun_u($vo.uid, 'userhead')}">
                                            </i>
                                        </i>
                                        <span class="user-name"><a target="_blank" href="{:url('index/user/uid',array('id'=>$vo.uid))}">{:fun_u($vo.uid, 'username')}</a></span>
                                        <span class="tieba-channel">[{:fun_cate_m($vo.tid, 'name')}]</span>
                                        <span class="tiezi-time">{$vo.time|times}</span>
                                    </div>
                                    <ul class="right-info">
                                        <li><i></i><span>{$vo.view}</span></li>
                                        <li><i></i><span>{:fun_st('comment', array('fid'=>$vo.id,'m'=>$vo.m))}</span></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        {/if}
                        {else/}
                        <!--没有图-->
                        <div class="nopics-news-box news-content">
                            <div class="nopics-news">
                                <h3>
                                    <a target="_blank" href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}">
                                        <span>{$vo.title}</span>
                                        {if $vo.settop==1}
                                        <div class="to-top">
                                            <i>置顶</i>
                                            <s class="bg1"></s>
                                            <s class="bg2"></s>
                                        </div>
                                        {/if}
                                    </a>
                                </h3>
                                <div class="news-info">
                                    <div class="left-info">	
                                        <i class="user-headicon">
                                            <i class="user-headicon">
                                                <img src="{:fun_u($vo.uid, 'userhead')}">
                                                </i>
                                        </i>
                                        <span class="user-name"><a target="_blank" href="{:url('index/user/uid',array('id'=>$vo.uid))}">{:fun_u($vo.uid, 'username')}</a></span>
                                        <span class="tieba-channel">[{:fun_cate_m($vo.tid, 'name')}]</span>
                                        <span class="tiezi-time">{$vo.time|times}</span>
                                    </div>
                                    <ul class="right-info">
                                        <li><i></i><span>{$vo.view}</span></li>
                                        <li><i></i><span>{:fun_st('comment', array('fid'=>$vo.id,'m'=>$vo.m))}</span></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        {/if}
                        {/volist}
                    </div>
                    <div class="pagination">
            		    {:fun_so(input('m'),array('open'=>1),input('ks'),15)->render()}
            		</div>
                </div>
 
            </div>
            <!--左边内容e-->
            <!--右边内容s-->
            <div class="right-content">
                <!--签到 s-->
                <div class="sign-box">
                    <div class="sign-title">
                        <h3><i></i><span>{:dingyi($c.title,set('title'))}</span></h3>
                    </div>
                    <ul class="count-box">
                        <li>
                            <h3 id="todaynum">{:fun_st('comment',array('open'=>1,'m'=>input('m')))}</h3>
                            <p>回复数</p>
                        </li>
                        <li>
                            <h3 id="tiezinum">{:fun_st(input('m'), array('open'=>1))}</h3>
                            <p>帖子数</p>	<i class="left-line"></i>
                            <i class="right-line"></i>
                        </li>
                        <li>
                            <h3 id="membernum">{:fun_st('member', array('open'=>1))}</h3>
                            <p>注册用户</p>
                        </li>
                    </ul>
                    <div class="sign-tieba">
                        <div class="sign-button">
                            <button class="chufa" url="{:url('qiandao/index/tijiao')}">
                                <a href="javascript:;"><i></i><span>今日签到</span></a>
                            </button>
                        </div>
                        {if sql_r('SHOW TABLES LIKE "my_qiandao"')}
                            {if fun_tj('qiandao', 'stime', Date_k(0), 'stime',  Date_k(1), array('uid'=>user('userid')))}
                            <div class="sign-count"><i></i><s id="qiandaonum">已签到+{:fun_sc_p('qiandao', array('uid'=>user('userid')), 'score','stime desc')}{:set('jifent',2)}</s></div>
                            {else/}
                            <div class="sign-count"><i></i><s id="qiandaonum">未签到</s></div>
                            {/if}
                        {/if}
                    </div>
                    <div class="out-tiezi">	<a target="_blank" href="{:url('index/user/add')}?model={:input('m')}">我要发帖</a>
                    </div>
                </div>
                <!--签到 e-->
                <!--热门话题s-->
                <div class="pub-style">
                    <div class="top-title hot-topic-title">热门话题</div>
                    <ul class="content-list topic-list">
                        {volist name=":fun_s(input('m'),array('open'=>1),'view desc',8,1)" id="vo" empty="
                        <div class='empty' align='center'>
                            <img src='/public/img/empty.png'/>
                            <p>没有更多的记录</p>
                        </div>"}
                        <li>
                            <a href="https://ihuoniao.cn/sz/tieba/detail-27.html">
                                {if getImgList($vo.content,0)}
                                <div class="lImg">
                                    <img src="{:getImgList($vo.content,0)}" />
                                </div>
                                {/if}
                                <div class="rContent">
                                    <h3>{$vo.title}</h3>
                                    <p><span>回复：{:fun_st('comment', array('fid'=>$vo.id))}</span><span>浏览：{$vo.view}</span>
                                    </p>
                                </div>
                            </a>
                        </li>
                        {/volist}
                    </ul>
                </div>
                <!--热门话题e-->
                <!--活跃会员s-->
                <div class="pub-style">
                    <div class="top-title person-live-title">活跃会员</div>
                    <ul class="content-list activist-list">
                        {volist name=":fun_s('member',array('open'=>1),'last_login_time desc',8,1)" id="vo"}
                        <li>
                            <a target="_blank" href="{:url('index/user/uid',array('id'=>$vo.userid))}">
                                <div class="activist">
                                    <div class="lImg">
                                        <img src="{$vo.userhead}" />
                                    </div>
                                    <div class="rContent">
                                        <h3>{$vo.username} </h3>
                                        <p>	<span>访问量：{$vo.view}</span>
                                            <i>|</i>
                                            <span>发帖：{:fun_st(input('m'), array('uid' => $vo.userid))}</span>
                                        </p>
                                    </div>
                                    <div data-uid="8" class="concern-btn follow">
                                        <button>访问主页</button>
                                    </div>
                                </div>
                            </a>	
                            <span class="top1 listtop">{$i}</span>
                        </li>
                        {/volist}
                    </ul>
                </div>
                <!--广告-->
                <div class="pub-style ">
                    <div class="top-title contact-us-title">赞助广告</div>
                    <div class="contact-us">
                        <div class="siteAdvObj">
                            {:ad(4)}
                        </div>
                    </div>
                </div>
                <!--广告e-->
            </div>
            <div class="kong"></div>
        </div>
    </div>
    {include file="footer"}